﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
   public  class Car:che
    {
        public string CarName { get; set; }
        public string CarColor{ get; set; }
        public string CarWheel{ get; set; }

        public void Run()
        {
            if (CarWheel >= 4)
                {
                Console.WriteLine("可以跑");
            }

            else
            {
                che.Repair();
                Console.WriteLine("请输入修车厂的名字：");
                cheName = Console.ReadLine();
                Console.WriteLine("请输入修车厂的地址：");
                cheAddress = Console.ReadLine();
                Console.WriteLine("请输入修车厂的电话：");
                chePhone = int.Parse((Console.ReadLine());
            }
            Console.WriteLine("结束");
        }


    }
}
